package com.fitns.user.dao.user;

import com.fitns.user.dto.user.UserCondition;
import com.fitns.user.dto.user.UserVO;
import com.fitns.user.model.user.User;

import java.util.List;

public interface UserDao {

    void insert(User user);

    User findUserByTellOrName(String nameOrTell);

    UserVO searchOne(Long id);

    List<UserVO> search(UserCondition userCondition);

    void update(UserVO userVO);

    void delete(Long id);

    List<UserVO> searchByRole(Long roleId);

    void inserBatch(List<UserVO> userVOS);

    User findByTell(String tell);



}
